package ${escapeKotlinIdentifiers(packageName)}.activity

import com.mettingocean.millionsboss.base.AnkoActivity
import ${escapeKotlinIdentifiers(packageName)}.layout.${activityClass}ActivityUI
<#if generateMVP>
import ${escapeKotlinIdentifiers(packageName)}.contract.${activityClass}Contract
import ${escapeKotlinIdentifiers(packageName)}.presenter.${activityClass}Presenter
</#if>
import org.jetbrains.anko.setContentView

class ${activityClass}Activity : AnkoActivity()<#if generateMVP>,${activityClass}Contract.View</#if>{
    val ui = ${activityClass}ActivityUI()
    override fun ankoLayout() {
        ui.setContentView(this)
    }
	
	<#if generateMVP>
	var mPresenter= ${activityClass}Presenter(this)</#if>
    
    override fun afterInitView() {
        
    }
	
	<#if generateMVP>
    override fun onDestroy() {
        super.onDestroy()
        mPresenter.cancel()
    }
	</#if>
}